<?php ob_start();
require('includes/top.php');
if(isset($_REQUEST['cat_id']))
{
	$sql=mysql_query("delete from categories where category_id=".$_REQUEST['cat_id']);
	header('Location:category.php');
}
elseif(isset($_REQUEST['u_id']))
{
	$sql=mysql_query("delete from users where user_id=".$_REQUEST['u_id']);
	header('Location:user.php');
}
elseif(isset($_REQUEST['exp_cat_id']))
{
	$sql=mysql_query("delete from expert_category where expert_category_id=".$_REQUEST['exp_cat_id']);
	header('Location:expert_category.php');
}

elseif(isset($_REQUEST['vendor_id']))
{
	$sql=mysql_query("delete from vendors where vendors_id=".$_REQUEST['vendor_id']);
	header('Location:viewvendors.php');
}
elseif(isset($_REQUEST['expert_id']))
{
	$sql=mysql_query("delete from experts where experts_id=".$_REQUEST['expert_id']);
	header('Location:expert.php');
}

elseif(isset($_REQUEST['subcat_id']))
{
	$sql=mysql_query("delete from subcategories where subcategory_id=".$_REQUEST['subcat_id']);
	header('Location:subcategory.php');
}
elseif(isset($_REQUEST['news_id']))
{
	$sql=mysql_query("delete from news where news_id=".$_REQUEST['news_id']);
	header('Location:viewnews.php');
}
elseif(isset($_REQUEST['banner_id']))
{
	$sql=mysql_query("delete from banners where banner_id=".$_REQUEST['banner_id']);
	header('Location:viewbanner.php');
}


ob_flush();
?>